package xzr4;

import java.awt.Color;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Panel;

public class StartTest {
    public static void main(String[] args) {
        Frame w = new Frame();
        MyPanel p = new MyPanel();
        w.add(p);
        w.setSize(1366, 768);
        w.setBackground(Color.black);
        w.show();

    }
}
class MyPanel extends Panel{
    public void paint(Graphics g) {
        super.paint(g);
        g.setColor(Color.WHITE);
        for(int i = 0;i<300;i++){
            g.drawString("*", (int)(Math.random()*1366), (int)(Math.random()*768));
        }


    }
}

